#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import xadmin
from . import models


class ContentsAdmin(object):
    """广告的模型站点管理"""

    model_icon = "fa fa-gift"
    list_display = [
        "id",
        "category",
        "title",
        "url",
        "image",
        "text",
        "sequence",
        "status",
    ]


xadmin.site.register(models.Content, ContentsAdmin)
xadmin.site.register(models.ContentCategory)
